package com.idea.tianmimi;

import android.content.Intent;
import android.text.Editable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.EditText;

public class RegisterActivity extends DefalutTitleActivity implements OnClickListener{

	private EditText mUserNameEditText;
	
	@Override
	protected View preInfoView() {
		return LayoutInflater.from(this).inflate(R.layout.register_page, null);
	}

	@Override
	protected void initView() {
		setLeftButton(0, "取消", this);
		
		setRightButton(0, "下一步", this);
		
		mUserNameEditText = (EditText)findViewById(R.id.register_username);
		
	}

	@Override
	protected void initDate() {
		// TODO Auto-generated method stub

	}

	public void onClick(View v) {
		if(v.equals(getLBotton()))
		{
			startActivity(new Intent(RegisterActivity.this,Login_Activity.class));
		}
		else if (v.equals(getRBotton())) {
			startActivity(new Intent(RegisterActivity.this,Login_Activity.class));
		}
		
	}

}
